home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / drdobbs / 1987 / 11 / contour.h < prev    next >
C/C++ Source or Header  |  1987-10-08  |  797b  |  28 lines

  1. /* ---------------------------------------------------------------------
  2.  *    contour.h
  3.  *    
  4.  *    defines the leaf structure and does the usual includes
  5.  * --------------------------------------------------------------------- */
  6.  
  7. #include <WindowMgr.h>
  8.  
  9. typedef struct {
  10.     union {
  11.         long key;          /* key = h,v concatenated */
  12.         Point p;
  13.     } header;
  14.     int  curve;       /* curve that this point is on */
  15. } LEAF;
  16.  
  17. #define HBITMAX 576    /* max pixels in horiz direction */
  18. #define VBITMAX 720 /* max pixels in vert direction */
  19.  
  20. #include "tree.h"
  21.  
  22. typedef struct curve_data {
  23.     Point     p;                        /* starting point of curve */
  24.     int        parent;                    /* parent (enclosing) curve */
  25.     int     elevation;                /* elevation of the curve */
  26.     int     searched;                /* has interior been searched? */
  27. } curve_data;
  28.